import 'package:yeyu_net/request/hi_base_request.dart';
import 'hi_net_adapter.dart';

class MockAdapter extends HiNetAdapter {
  @override
  Future<HiNetResponse<T>> send<T>(HiBaseRequest request) {
    // TODO: implement send
    return Future<HiNetResponse>.delayed(Duration(milliseconds: 1000), () {
      return HiNetResponse(data: {
        'code': 0, 'message': 'success'
      },statusCode: 200);
    });
  }
}
